<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<title>经理退货审核</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="../../res/css/layui.css" media="all">
<script type="text/javascript" src="../../res/js/jquery-1.11.2.min.js"></script>
</head>
<body>
	<div class="demoTable" style="margin-left: 20px; margin-top: 10px;">
		
		开始时间：
		<div class="layui-inline">
			<input class="layui-input" style="height: 32px;" name="id" id="date"
				placeholder="yyyy-MM-dd" autocomplete="off">
		</div>
		-截止时间:
		<div class="layui-inline">
			<input class="layui-input" name="id" id="time" style="height: 32px;"
				placeholder="yyyy-MM-dd" autocomplete="off">
		</div>
		公司:
		<from class="layui-form">
		<div class="layui-inline">
			<select lay-filter="aihao" id="braId" style="width: 100px; border: 1px solid red;">
				<option value="">====请选择====</option>
			</select>
		</div>
		</from>
		<button class="layui-btn layui-btn-sm" data-type="reload" id="selectButton">搜索</button>
	</div>
	
	<table class="layui-hide" id="LAY_table_user" lay-filter="user"></table>
	<table class="layui-table" lay-data="{ url:'../../sncompurchase/findAllSnComSales.action', page:true, id:'idTest'}" lay-filter="demo">
		<thead>
			<tr>
				<th lay-data="{type:'checkbox', fixed: 'left'}"></th>
				<th lay-data="{field:'csId', fixed: true, align:'center'}">采购ID</th>
				<th lay-data="{field:'braName', align:'center'}">分公司名</th>
				<th lay-data="{field:'optime', align:'center', sort: true}">操作时间</th>
				<th lay-data="{field:'oper', align:'center',templet:'#shenh'}">退货人</th>
				<th lay-data="{field:'allId', align:'center'}">业务ID</th>
				<th lay-data="{field:'csComment', align:'center'}">退货意见</th>
				<th lay-data="{fixed: 'right', align:'center', width:235, toolbar: '#barxqing'}">详情</th>
				<th lay-data="{fixed: 'right', align:'center', toolbar: '#barDemo'}">操作</th>
			</tr>
		</thead>
	</table>

	<!-- 退货详情 -->
	<div id="add2" style="display: none;">
		<table class="layui-table" lay-data="{ url:'../../sncompurchase/findAllComSaDetail.action', page:true, id:'idTest2'}" lay-filter="demo6">
			<thead>
				<tr>
					<th lay-data="{type:'checkbox', fixed: 'left'}"></th>
					<th lay-data="{field:'sdId', align:'center'}">详情ID</th>
					<th lay-data="{field:'csId', align:'center'}">退货ID</th>
					<th lay-data="{field:'comName', align:'center'}">商品名称</th>
					<th lay-data="{field:'sdCount', align:'center'}">退货数量</th>
				</tr>
			</thead>
		</table>
	</div>
	<!-- 审核 -->
	<div id="add3" style="display:none;">
		 <div class="layui-form-item">
		    <label class="layui-form-label">是否通过</label>
		    <div class="layui-input-block layui-form">
		      <input type="radio" name="sex" value="1" title="是" checked>
		      <input type="radio" name="sex" value="0" title="否">
		    </div>
		 </div>
		 <div class="layui-form-item layui-form-text">
		    <label class="layui-form-label">采购意见</label>
		    <div class="layui-input-block">
		      <textarea id="shenheyijian" placeholder="请输入内容" class="layui-textarea" style="width:280px;"></textarea>
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <div class="layui-input-block">
		      <button id="zuihoutijiao" class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
		    </div>
		  </div>
	</div>

	<script type="text/html" id="barxqing">
  		<button class="layui-btn layui-btn-xs" lay-event="thxq">退货详情</button>
	</script>
	<script type="text/html" id="barDemo"> 
	{{# if(d.csState == 0) { }}
		<button class="layui-btn layui-btn-warm layui-btn-xs layui-btn-disabled" disabled="disabled">等待财务审核</button>
	{{# } else if(d.csState ==1){ }}
		<button class="layui-btn layui-btn-warm layui-btn-xs" lay-event="shenhe">审核</button>
	{{# } else if(d.csState == 2){ }}
		<button class="layui-btn layui-btn-warm layui-btn-xs layui-btn-disabled" disabled="disabled">不通过</button>
	{{# } else if(d.csState == 3){ }}
		<button class="layui-btn layui-btn-warm layui-btn-xs layui-btn-disabled" disabled="disabled">通过</button>

	{{# } else if(d.csState == 5){ }}
		<button class="layui-btn layui-btn-warm layui-btn-xs layui-btn-disabled" disabled="disabled">不通过</button>
	{{# } else if(d.csState == 6){ }}
		<button class="layui-btn layui-btn-warm layui-btn-xs layui-btn-disabled" disabled="disabled">通过</button>
	{{# }}}
	</script>

	<script src="../../res/layui.all.js" charset="utf-8"></script>
	<script type="text/javascript" src="../../res/js/wq/managerSales.js"></script>
</body>
</html>